﻿<%@ Page Title="" Language="C#" MasterPageFile="~/QuanTri/Manager.master" AutoEventWireup="true"
    CodeFile="TrangNhatKyTacVu.aspx.cs" Inherits="QuanTri_TrangNhatKyTacVu" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head1" runat="Server">
    <link href="../CSS/FixItem.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="Server">
    <div style="width: 100%; height: auto;">
        <div id="main_panel" style="width: 100%;">
            <div id="personal_content" style="padding: 10px; border: 1px solid #ccc; height: 600px;">
                <div class="personal_top_text">
                    Nhật ký tác vụ
                </div>
                    <asp:TabContainer runat="server" ID="tabcon" Width="100%" 
                        ActiveTabIndex="0">
                        <asp:TabPanel runat="server" ID="tab1" HeaderText="Giáo viên" >
                            <ContentTemplate>
                            <div>
                                <div >
                                    <span>Nhập thông tin: </span>
                                    <asp:TextBox runat="server" ID="txtTimKiemGV" Width="300px" Height="25px" CssClass="heighcontrol"></asp:TextBox>
                                   &nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:Button runat="server" ID="btnTimGiaoVien" CssClass="button_150" 
                                        Text="Tìm kiếm" OnClick="btnTimGiaoVien_Click" />&nbsp;&nbsp;&nbsp;
                                    <asp:Button runat="server" ID="btnAllGV" CssClass="button_150" Text="Toàn bộ" 
                                        onclick="btnAllGV_Click" />
                                </div>
                                <div style="margin-top: 5px;">
                                    <asp:GridView ID="grvTacVuGV" runat="server" AutoGenerateColumns="False" Width="100%"
                                        AllowPaging="True" Height="28px" ShowFooter="True">
                                        <HeaderStyle BackColor="#9999FF" Height="30px" VerticalAlign="Middle" />
                                        <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="15px"
                                            Height="25px" />
                                        <Columns>
                                            <asp:TemplateField HeaderText="STT">
                                                <ItemTemplate>
                                                    <%# Container.DataItemIndex + 1 %>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                             <asp:TemplateField HeaderText="Tên GV" SortExpression="TenCanBo">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblMaTacVu" runat="server" Text='<%#Bind("MaCanBoGV") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Tên GV" SortExpression="TenCanBo">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblTenTacVu" runat="server" Text='<%#Bind("TenCanBo") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Tên tác vụ" SortExpression="TenTacVu">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblTenTacVu" runat="server" Text='<%#Bind("TenTacVu") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Thời gian" SortExpression="NgayThang">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblThoiGian" runat="server" Text='<%#Bind("NgayThang") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Nội dung" SortExpression="NoiDung">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblNoiDung" runat="server" Text='<%#Bind("NoiDung") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                    </div>
                                    </ContentTemplate>
                        </asp:TabPanel>
                        <asp:TabPanel runat="server" ID="Tab2" HeaderText="Quản trị">
                            <ContentTemplate>
                            <div>
                                <div >
                                    <span >Nhập thông tin: </span>
                                    <asp:TextBox runat="server" ID="txtTimKiemAd" Width="300px" Height="25px" CssClass="heighcontrol"></asp:TextBox>
                                   &nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:Button runat="server" ID="btnTimAd" CssClass="button_150" Text="Tìm kiếm" 
                                        onclick="btnTimAd_Click"  />&nbsp;&nbsp;&nbsp;
                                    <asp:Button runat="server" ID="btnAllAdmin" CssClass="button_150" 
                                        Text="Toàn bộ" onclick="btnAllAdmin_Click" />
                                </div>
                                <div style="margin-top: 5px;">
                                    <asp:GridView ID="grvTacVuAd" runat="server" AutoGenerateColumns="False"
                                         AllowPaging="True" Height="28px" ShowFooter="True" Width="100%">
                                        <HeaderStyle BackColor="#9999FF" Height="30px" VerticalAlign="Middle" />
                                        <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" VerticalAlign="Middle" Font-Size="15px"
                                            Height="25px" />
                                        <Columns>
                                            <asp:TemplateField HeaderText="STT">
                                                <ItemTemplate>
                                                    <%# Container.DataItemIndex + 1 %>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Tên đăng nhập" SortExpression="MaCanBoGV">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblMaCanBoGV" runat="server" Text='<%#Bind("TenDangNhap") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Tên GV" SortExpression="TenCanBo">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblTenAd" runat="server" Text='<%#Bind("TenAdmin") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Tên tác vụ" SortExpression="TenTacVu">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblTenTacVuAd" runat="server" Text='<%#Bind("TenTacVu") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Thời gian" SortExpression="NgayThang">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblThoiGianAd" runat="server" Text='<%#Bind("NgayThang") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Nội dung" SortExpression="NoiDung">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblNoiDungAd" runat="server" Text='<%#Bind("NoiDung") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                    </div>
                                    </ContentTemplate>
                        </asp:TabPanel>
                    </asp:TabContainer>
                
            </div>
        </div>
    </div>

</asp:Content>
